package com.android.huimeiqupin.model.group;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/8/17.
 */

public class MainGoodsCatData implements Serializable {


    /**
     * data :
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1492756003
     */
    @Override
    public String toString() {
        return "{" + "\"data\"" + ":" + data +
                "," + "\"flag\"" + ":" + flag +
                "," + "\"code\"" + ":" + code +
                "," + "\"msg\"" + ":" + "\"" + msg + "\"" +
                "," + "\"time\"" + ":" + time + "}";

    }

    private boolean flag;
    private int code;
    private String msg;
    private int time;
    private MainGoodsCatData.DataBean data;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public MainGoodsCatData.DataBean getData() {
        return data;
    }

    public void setData(MainGoodsCatData.DataBean data) {
        this.data = data;
    }
    public static class DataBean   implements Serializable
    {
      private String top;
        private List<Cat_ListBean> cat_list;
        private List<Cat_Isrec> cat_isrec;
        @Override
        public String toString() {
            return "{" +
                    "\"top\"" + ":" + "\"" + top + "\"" + ","
                    + "\"cat_list\"" + ":" + "\"" + cat_list + "\"" + ","
                    + "\"cat_isrec\"" + ":" +cat_isrec
                    + "}";

        }
        public String getTop() {
            return top;
        }

        public void setTop(String top) {
            this.top = top;
        }

        public List<Cat_ListBean> getCat_list() {
            return cat_list;
        }

        public void setCat_list(List<Cat_ListBean> cat_list) {
            this.cat_list = cat_list;
        }

        public List<Cat_Isrec> getCat_isrec() {
            return cat_isrec;
        }

        public void setCat_isrec(List<Cat_Isrec> cat_isrec) {
            this.cat_isrec = cat_isrec;
        }
        public static class Cat_ListBean implements Serializable
        {
            public Cat_ListBean(String id, String catname) {
                this.id = id;
                this.catname = catname;
            }
            String id;
            String catname;
            @Override
            public String toString() {
                return "{" +
                        "\"id\"" + ":" + "\"" + id + "\"" + ","
                        + "\"catname\"" + ":" +catname
                        + "}";

            }
            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }
        }
        public static class Cat_Isrec implements Serializable
        {
            String id;
            String catname;
            String thumb;
            @Override
            public String toString() {
                return "{" +
                        "\"id\"" + ":" + "\"" + id + "\"" + ","
                        + "\"catname\"" + ":" +catname+ ","
                        + "\"thumb\"" + ":" + "\"" + thumb + "\""
                        + "}";

            }
            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }
        }
    }
}

